import { Component, OnInit } from '@angular/core';
import {Http} from '@angular/http';
import 'rxjs/add/operator/toPromise'
declare var $:any;
@Component({
  selector: 'app-menuright',
  templateUrl: './menuright.component.html',
  styleUrls: ['./menuright.component.css']
})
export class MenurightComponent implements OnInit {
  cuxiaocontainer = true;
  gonggaocontainer = false;
  // 促销
  cuxiao(){
    $("#cuxiao").addClass('active').siblings().removeClass('active');
    this.cuxiaocontainer = true;
    this.gonggaocontainer = false;
  }
  // 公告
 gonggao(){
   $("#gonggao").addClass('active').siblings().removeClass('active');
    this.cuxiaocontainer = false;
    this.gonggaocontainer = true;
 };
 one = [
    {id:"0",countainer:"银行代扣通道已正常运行，请大家放心使用"},
    {id:"1",countainer:"爱便利全新升级大惠送"},
    {id:"2",countainer:"厨房家居自营满200减50"}
  ];
   two = [
    {id:"0",countainer:"公告代扣通道已正常运行，请大家放心使用"},
    {id:"1",countainer:"公告爱便利全新升级大惠送"},
    {id:"2",countainer:"公告厨房家居自营满200减50"}
  ];
  constructor() { }

  ngOnInit() {
  }

}
